
import React from "react"
import Notice1 from "./Notice1"
import Notice2 from "./Notice2"

// 根据type显示不同类型的公告

function NoticeWrapper({ title, type }) {
  if (type == "1") {
    return <Notice1 title={title} />
  }

  if (type == "2") {
    return <Notice2 title={title} />
  }

  return null
}


export default React.memo(NoticeWrapper) 